package org.iabako.client.ui.page.support;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.user.client.ui.Panel;
import org.iabako.client.config.page.PageConfigEnum;
import org.iabako.client.ui.form.AbstractForm;
import org.iabako.client.ui.layout.field.IField;
import org.iabako.client.ui.layout.template.Popup;
import org.iabako.shared.entity.business.AbstractEntity;

import java.util.List;

/**
 * Created by jose on 14/01/15.
 */
public class Privacy extends AbstractForm {

    interface MyUiBinder extends UiBinder<Panel, Privacy> {
    }

    private static final MyUiBinder binder = GWT.create(MyUiBinder.class);

    public Privacy(final AbstractForm form) {
        this.parentForm = form;
        simplePopup = true;
        setForm(binder, PageConfigEnum.Terms, null);

        Popup.resizeToBigPopup();
    }

    @Override
    protected List<IField> getMandatoryFields() {
        return null;
    }

    @Override
    protected AbstractEntity getEntity() {
        return null;
    }

    @Override
    public boolean validate() {
        return false;
    }
}
